# if语句实战

import turtle

t = turtle.Pen()

number = int(turtle.numinput("输入数字", "请输入一个数字", 6))

shape = turtle.textinput("形状选择", "p or r")

for x in range(number):
    if shape == 'r':
        t.circle(100)
    else:
        t.forward(50)
    t.left(360/number)

turtle.mainloop()
